package ren.colorful.thread;

public class TheMain {
	public static ThreadLocal<Integer> seq = new ThreadLocal<Integer>(){
		public Integer initialValue(){
			return 0;
		}
	};
	
	public static Integer increGet(){
		seq.set(seq.get() + 1);
		return seq.get();
	}
	
	public static void main(String[] args) {
		for(int i = 0;i < 4; i++){
			Task1 task = new Task1();
			new Thread(task).start();
		}
	}
}
